﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace DxfMonitor
{
    public static class Shared
    {
        public static bool IsDateInitialized(DateTime dt)
        {
            return dt.Year > 1975;
        }

        public static void StartFile(string file)
        {
            try
            {
                var p = new Process();
                p.StartInfo = new ProcessStartInfo(file)
                {
                    UseShellExecute = true
                };
                p.Start();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}
